<div id="right-menu" class="well">
    <ul class="nav nav-list">
        <li {% ifequal url_name 'post_list' %}class="active"{% endifequal %}>
            <a href="{% url home_page %}">Homepage</a>
        </li>
        <li class="divider"></li>
        <li class="nav-header">Categories</li>
        {% for category in categories %}
            <li {% ifequal category.id current_category %}class="active"{% endifequal %}>
                <a href="{{ category.get_absolute_url }}">{{ category.name }}</a>
            </li>
        {% endfor %}

        <li class="nav-header">Archives</li>
    </ul>
</div>